/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.sample.product;

import java.util.List;

/**
 *
 * @author hendro
 */
public interface ProductDAO {
    public List<Product> list()throws Exception;
    public void insert(Product product)throws Exception;
    public void update(Product product)throws Exception;
    public void delete(Product product)throws Exception;
    public List<Product> select(String name)throws Exception;
    public List<Product> select(int id,String name)throws Exception;
}
